﻿using System;
using System.Collections.Generic;
using Shop.Base.Entity;
using Shop.Base.Entity.Delete;
using Shop.Base.Entity.Insert;
using Shop.Base.Entity.Update;
using Shop.Base.Entity.View;
using Shop.Entity;
using Shop.Interface;

namespace Shop.Base.Interface
{
    public interface ISystemRoleFunction:IBase
    { 
        /// <summary>
        /// 获取菜单所有按钮
        /// </summary>
        List<SystemRoleFunctionPo> GetAll(Guid roleId);

        /// <summary>
        /// 获取菜单所有按钮
        /// </summary>
        List<SystemRoleFunctionPo> GetAll(List<Guid> roleIds);

        /// <summary>
        /// 批量保存
        /// </summary>
        /// <param name="t">菜单按钮</param>
        /// <param name="roleId">角色Id</param>
        /// <param name="user">操作人</param>
        bool MultSave(List<string> t,Guid roleId,ComUser user);

        /// <summary>
        /// 根据角色Id获取权限
        /// </summary>
        List<UserRoleFunction> GetUserRoleFunction(List<Guid> roleIds);
    }
}